package com.gameShare.mappers.user

import com.gameShare.entity.vo.FocusUserVo
import org.apache.ibatis.annotations.Param

interface UserFocusMapper {

    fun selectUserFocus(
        @Param("userId") userId: String,
        @Param("start") start : Int,
        @Param("end") end : Int,
    ) : List<FocusUserVo?>

    fun selectUserFocusCount(
        @Param("userId") userId : String,
    ) : Int

    fun selectBeUserFocus(
        @Param("userId") userId: String,
        @Param("start") start : Int,
        @Param("end") end : Int,
    ) : List<FocusUserVo?>

    fun selectBeUserFocusCount(
        @Param("userId") userId : String
    ) : Int

    fun insert(
        @Param("userId") userId : String,
        @Param("focusUserId") focusUserId: String
    ) : Int

    fun delete(
        @Param("userId") userId : String,
        @Param("focusUserId") focusUserId: String
    ) : Int

    fun checkFocusExist(
        @Param("userId") userId : String,
        @Param("focusUserId") focusUserId: String
    ): Int


}